function [fnames,mouse_id,userID,aux_files]=read_info_from_stacks(stacks_path,ExpID)

[~,~,stacks]=xlsread(stacks_path);
cnt=0;
col = find(strcmp(stacks(1,:), 'ExpID') == 1);
for ind = 2:size(stacks,1)
    if stacks{ind, col} == ExpID
        cnt = cnt + 1;
        stacks_ind(cnt) = ind;
    end
end
if exist('stacks_ind','var')
    col = find(strcmp(stacks(1,:), 'StackID') == 1);
    ExpIDs=stacks(stacks_ind, col);
else
    disp('No matching entry in stacks.xls found. Aborting');
    return
end

usr_col=find(strcmp(stacks(1,:), 'Pi') == 1);
userID=unique(stacks(stacks_ind, usr_col));
userID=userID{1};

anm_col=find(strcmp(stacks(1,:), 'AnimalID') == 1);
mouse_id=unique(stacks(stacks_ind, anm_col));
mouse_id=mouse_id{1};

for ind=1:length(ExpIDs)
    fnames{ind}=['S1-T' num2str(ExpIDs{ind}) '_ch525.bin'];
end
 
for ind=1:length(ExpIDs)
    aux_files{ind}=['S1-T' num2str(ExpIDs{ind}) '.lvd'];
end